package jumpingnotes.model.entity;

// Generated Aug 10, 2008 2:18:38 PM by Hibernate Tools 3.2.1.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * GroupAdmin generated by hbm2java
 */
@Entity
@Table(name = "group_admin", catalog = "jumping_notes")
public class GroupAdmin implements java.io.Serializable
{

	private Integer groupAdminId;
	private Member member;
	private int groupId;
	private Date createTime;

	public GroupAdmin()
	{
	}

	public GroupAdmin(Member member, int groupId, Date createTime)
	{
		this.member = member;
		this.groupId = groupId;
		this.createTime = createTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "group_admin_id", unique = true, nullable = false)
	public Integer getGroupAdminId()
	{
		return this.groupAdminId;
	}

	public void setGroupAdminId(Integer groupAdminId)
	{
		this.groupAdminId = groupAdminId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "member_id", nullable = false)
	public Member getMember()
	{
		return this.member;
	}

	public void setMember(Member member)
	{
		this.member = member;
	}

	@Column(name = "group_id", nullable = false)
	public int getGroupId()
	{
		return this.groupId;
	}

	public void setGroupId(int groupId)
	{
		this.groupId = groupId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 19)
	public Date getCreateTime()
	{
		return this.createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

}
